/*  1:   */ package org.intellij.plugins.relaxNG.convert;
/*  2:   */ 
/*  3:   */

import com.intellij.ide.errorTreeView.NewErrorTreeViewPanel;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Key;
import com.thaiopensource.xml.sax.ErrorHandlerImpl;
import org.intellij.plugins.relaxNG.validation.MessageViewHelper;
import org.xml.sax.SAXParseException;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ public class IdeaErrorHandler
/* 11:   */   extends ErrorHandlerImpl
/* 12:   */ {
/* 13:   */   private static final String a = "Convert Schema";
/* 14:33 */   private static final Key<NewErrorTreeViewPanel> b = Key.create("CONVERSION_ERRORS");
/* 15:   */   private final MessageViewHelper c;
/* 16:   */   
/* 17:   */   public IdeaErrorHandler(Project paramProject)
/* 18:   */   {
/* 19:38 */     this.c = new MessageViewHelper(paramProject, "Convert Schema", b);
/* 20:   */   }
/* 21:   */   
/* 22:   */   public void warning(SAXParseException paramSAXParseException)
/* 23:   */     throws SAXParseException
/* 24:   */   {
/* 25:43 */     this.c.processError(paramSAXParseException, true);
/* 26:   */   }
/* 27:   */   
/* 28:   */   public void error(SAXParseException paramSAXParseException)
/* 29:   */   {
/* 30:48 */     this.c.processError(paramSAXParseException, false);
/* 31:   */   }
/* 32:   */   
/* 33:   */   public void fatalError(SAXParseException paramSAXParseException)
/* 34:   */     throws SAXParseException
/* 35:   */   {
/* 36:53 */     this.c.processError(paramSAXParseException, false);
/* 37:   */   }
/* 38:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.convert.IdeaErrorHandler

 * JD-Core Version:    0.7.0.1

 */